import csv

with open("data.csv", mode="a", encoding="utf-8") as f:
    cf = csv.writer(f)
    cf.writerow(["tom", "js", 80])
    cf.writerows([["tom", "js", 80], ["xx", "c++", 10], ["ff", "c#", 90]])
    f.flush()
